<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>Document</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">
		<style>
			*{
				margin: 0;
				padding: 0;
			}
			#demo{
				width: 100%;
				height: 200px;
				background-color: orange;
			}
		</style>
	</head>
	<body>
		<div id="demo"></div>
		<script type="text/javascript" >
			const demo = document.getElementById('demo')

			// setTimeout(()=>{
			// 	alert(1)
			// },2000)

			demo.addEventListener('touchstart',()=>{
				console.log('你的手指触摸到了橙色盒子')
			})

			demo.addEventListener('touchend',()=>{
				console.log('你的手指从橙色盒子上抬起来了')
			})

			demo.addEventListener('touchmove',()=>{
				console.log('你的手指在橙色盒子上移动了')
			})

			demo.addEventListener('touchcancel',()=>{
				console.log('触摸被打断了')
			})


		</script>
	</body>
</html>